import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    // 存储token
    // token: "",
    userInfo: ""
    // islogin: false,
  },
  mutations: {
    userInfo(state, userInfo) {
      state.userInfo = userInfo;
    }
    // islogin(state, islogin) {
    //   state.islogin = islogin;
    // },
  },
  actions: {
    // 专门 负责发送ajax请求，从服务器端获取
  },
  modules: {}
});
